package com.camtc.camcenter.service.impl;

import com.camtc.camcenter.base.service.impl.BaseServiceImpl;
import com.camtc.camcenter.dao.entity.CloudPermission;
import com.camtc.camcenter.dao.repository.CloudPermissionRepository;
import com.camtc.camcenter.service.CloudPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 云用户权限实现
 *
 * @author
 * @date
 */

@Service
@Transactional(rollbackFor = Exception.class)
public class CloudPermissionServiceImpl extends BaseServiceImpl<CloudPermission> implements CloudPermissionService {

    private CloudPermissionRepository cloudPermissionRepository;

    @Override
    public void initJpaRepository() {
        this.jpaRepository = cloudPermissionRepository;
    }

    @Autowired
    public void setCloudPermissionRepository(CloudPermissionRepository cloudPermissionRepository) {
        this.cloudPermissionRepository = cloudPermissionRepository;
    }
}
